package com.mostromas.ess.product.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mostromas.ess.entities.ProductColor;
import com.mostromas.ess.product.mapper.ProductColorMapper;
import com.mostromas.ess.product.service.IProductColorService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductColorServiceImpl extends ServiceImpl<ProductColorMapper, ProductColor> implements IProductColorService {
    @Override
    public List<ProductColor> findColorsByProductId(String id) {
        List<ProductColor> colorList = baseMapper.selectByProductId(id);

        return colorList;
    }
}
